<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
      require ("paste/config/siteconfig.php");
      require ("paste/config/databaseconfig.php");
      ?>
  <?php
    if ( $siteconfigcolor = "Blue") $sitecss = "css/styleblue.css"; if ( $siteconfigcolor = "Orange") $sitecss = "css/style.css"; if ( $siteconfigcolor = "Pink") $sitecss = "css/stylepink.css"; ?>
  <html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <?php print ( "<link rel=\"stylesheet\" href=$sitecss type=\"text/css\" media=\"screen\">" ); ?>
    <script type="text/javascript" src="js/accordian.pack.js"></script>
    <title><?php echo ($sitename); ?></title>
  </head>
  <body onload="new Accordian('accordian',3,'header_highlight');">
    <div id="header">
      <h1><span style="text-decoration: underline;"><?php echo ($sitename); ?></span><br>
      </h1>
      <h2>A free open source pastebin that is cooler than the rest<br>
      </h2>
    </div>
    <div id="accordian"><!--Parent of the Accordion-->
      <!--Start of each accordion item-->
      <div id="test-header" class="accordion_headings header_highlight">New Paste</div>
      <!--Heading of the accordion ( clicked to show n hide ) -->
      <!--Prefix of heading (the DIV above this) and content (the DIV below this) to be same... eg. foo-header & foo-content-->
      <div id="test-content"><!--DIV which show/hide on click of header-->
        <!--This DIV is for inline styling like padding...-->
        <div class="accordion_child"> How simple could it be to have an
          elegant Pastebin that's fully customizable, fully featured,
          and yet, light, sweet, and eye-catching. Here is where you can
          make a new paste. It's simple! Fill out the form with your
          code, and your ready to go!<br>
          <br>
          <form action="paste/submit.php" method="post" name="Paste"> <br>
            <p>&nbsp; What is your paste's name?</p>
            <p> <input name="name" type="text"></p>
            <p>&nbsp;&nbsp; What will your paste contain?</p>
            <p> <textarea cols="20" name="input_contents" rows="20"></textarea></p>
            <p>&nbsp;&nbsp; What is your paste's language?</p>
            <p>
              <select name="input_language">
                <option value="4cs">GADV 4CS</option>
                <option value="6502acme">MOS 6502 (6510) ACME Cross
                  Assembler format</option>
                <option value="6502kickass">MOS 6502 (6510) Kick
                  Assembler format</option>
                <option value="6502tasm">MOS 6502 (6510) TASM/64TASS
                  1.46 Assembler format</option>
                <option value="68000devpac">Motorola 68000 - HiSoft
                  Devpac ST 2 Assembler format</option>
                <option value="abap">ABAP</option>
                <option value="actionscript">ActionScript</option>
                <option value="actionscript3">ActionScript 3</option>
                <option value="ada">Ada</option>
                <option value="algol68">ALGOL 68</option>
                <option value="apache">Apache configuration</option>
                <option value="applescript">AppleScript</option>
                <option value="apt_sources">Apt sources</option>
                <option value="asm">ASM</option>
                <option value="asp">ASP</option>
                <option value="autoconf">Autoconf</option>
                <option value="autohotkey">Autohotkey</option>
                <option value="autoit">AutoIt</option>
                <option value="avisynth">AviSynth</option>
                <option value="awk">awk</option>
                <option value="bascomavr">BASCOM AVR</option>
                <option value="bash">Bash</option>
                <option value="basic4gl">Basic4GL</option>
                <option value="bf">Brainfuck</option>
                <option value="bibtex">BibTeX</option>
                <option value="blitzbasic">BlitzBasic</option>
                <option value="bnf">bnf</option>
                <option value="boo">Boo</option>
                <option value="c">C</option>
                <option value="c_loadrunner">C (LoadRunner)</option>
                <option value="c_mac">C (Mac)</option>
                <option value="caddcl">CAD DCL</option>
                <option value="cadlisp">CAD Lisp</option>
                <option value="cfdg">CFDG</option>
                <option value="cfm">ColdFusion</option>
                <option value="chaiscript">ChaiScript</option>
                <option value="cil">CIL</option>
                <option value="clojure">Clojure</option>
                <option value="cmake">CMake</option>
                <option value="cobol">COBOL</option>
                <option value="coffeescript">CoffeeScript</option>
                <option value="cpp">C++</option>
                <option class="sublang" value="cpp-qt">&nbsp;&nbsp;C++
                  (QT)</option>
                <option value="csharp">C#</option>
                <option value="css">CSS</option>
                <option value="cuesheet">Cuesheet</option>
                <option value="d">D</option>
                <option value="dcl">DCL</option>
                <option value="dcs">DCS</option>
                <option value="delphi">Delphi</option>
                <option value="diff">Diff</option>
                <option value="div">DIV</option>
                <option value="dos">DOS</option>
                <option value="dot">dot</option>
                <option value="e">E</option>
                <option value="ecmascript">ECMAScript</option>
                <option value="eiffel">Eiffel</option>
                <option value="email">eMail (mbox)</option>
                <option value="epc">EPC</option>
                <option value="erlang">Erlang</option>
                <option value="euphoria">Euphoria</option>
                <option value="f1">Formula One</option>
                <option value="falcon">Falcon</option>
                <option value="fo">FO (abas-ERP)</option>
                <option value="fortran">Fortran</option>
                <option value="freebasic">FreeBasic</option>
                <option value="fsharp">F#</option>
                <option value="gambas">GAMBAS</option>
                <option value="gdb">GDB</option>
                <option value="genero">genero</option>
                <option value="genie">Genie</option>
                <option value="gettext">GNU Gettext</option>
                <option value="glsl">glSlang</option>
                <option value="gml">GML</option>
                <option value="gnuplot">Gnuplot</option>
                <option value="go">Go</option>
                <option value="groovy">Groovy</option>
                <option value="gwbasic">GwBasic</option>
                <option value="haskell">Haskell</option>
                <option value="hicest">HicEst</option>
                <option value="hq9plus">HQ9+</option>
                <option value="html4strict">HTML</option>
                <option value="html5">HTML</option>
                <option value="icon">Icon</option>
                <option value="idl">Uno Idl</option>
                <option value="ini">INI</option>
                <option value="inno">Inno</option>
                <option value="intercal">INTERCAL</option>
                <option value="io">Io</option>
                <option value="j">J</option>
                <option value="java">Java</option>
                <option value="java5">Java(TM) 2 Platform Standard
                  Edition 5.0</option>
                <option value="javascript">Javascript</option>
                <option value="jquery">jQuery</option>
                <option value="kixtart">KiXtart</option>
                <option value="klonec">KLone C</option>
                <option value="klonecpp">KLone C++</option>
                <option value="latex">LaTeX</option>
                <option value="lb">Liberty BASIC</option>
                <option value="ldif">LDIF</option>
                <option value="lisp">Lisp</option>
                <option value="llvm">LLVM Intermediate Representation</option>
                <option value="locobasic">Locomotive Basic</option>
                <option value="logtalk">Logtalk</option>
                <option value="lolcode">LOLcode</option>
                <option value="lotusformulas">Lotus Notes @Formulas</option>
                <option value="lotusscript">LotusScript</option>
                <option value="lscript">LScript</option>
                <option value="lsl2">LSL2</option>
                <option value="lua">Lua</option>
                <option value="m68k">Motorola 68000 Assembler</option>
                <option value="magiksf">MagikSF</option>
                <option value="make">GNU make</option>
                <option value="mapbasic">MapBasic</option>
                <option value="matlab">Matlab M</option>
                <option value="mirc">mIRC Scripting</option>
                <option value="mmix">MMIX</option>
                <option value="modula2">Modula-2</option>
                <option value="modula3">Modula-3</option>
                <option value="mpasm">Microchip Assembler</option>
                <option value="mxml">MXML</option>
                <option value="mysql">MySQL</option>
                <option value="newlisp">newlisp</option>
                <option value="nsis">NSIS</option>
                <option value="oberon2">Oberon-2</option>
                <option value="objc">Objective-C</option>
                <option value="objeck">Objeck Programming Language</option>
                <option value="ocaml">OCaml</option>
                <option class="sublang" value="ocaml-brief">&nbsp;&nbsp;OCaml












                  (brief)</option>
                <option value="oobas">OpenOffice.org Basic</option>
                <option value="oracle11">Oracle 11 SQL</option>
                <option value="oracle8">Oracle 8 SQL</option>
                <option value="oxygene">Oxygene (Delphi Prism)</option>
                <option value="oz">OZ</option>
                <option value="parigp">PARI/GP</option>
                <option value="pascal">Pascal</option>
                <option value="pcre">PCRE</option>
                <option value="per">per</option>
                <option value="perl">Perl</option>
                <option value="perl6">Perl 6</option>
                <option value="pf">OpenBSD Packet Filter</option>
                <option selected="selected" value="php">PHP</option>
                <option class="sublang" value="php-brief">&nbsp;&nbsp;PHP












                  (brief)</option>
                <option value="pic16">PIC16</option>
                <option value="pike">Pike</option>
                <option value="pixelbender">Pixel Bender 1.0</option>
                <option value="pli">PL/I</option>
                <option value="plsql">PL/SQL</option>
                <option value="postgresql">PostgreSQL</option>
                <option value="povray">POVRAY</option>
                <option value="powerbuilder">PowerBuilder</option>
                <option value="powershell">PowerShell</option>
                <option value="proftpd">ProFTPd configuration</option>
                <option value="progress">Progress</option>
                <option value="prolog">Prolog</option>
                <option value="properties">PROPERTIES</option>
                <option value="providex">ProvideX</option>
                <option value="purebasic">PureBasic</option>
                <option value="pycon">Python (console mode)</option>
                <option value="python">Python</option>
                <option value="q">q/kdb+</option>
                <option value="qbasic">QBasic/QuickBASIC</option>
                <option value="rails">Rails</option>
                <option value="rebol">REBOL</option>
                <option value="reg">Microsoft Registry</option>
                <option value="robots">robots.txt</option>
                <option value="rpmspec">RPM Specification File</option>
                <option value="rsplus">R / S+</option>
                <option value="ruby">Ruby</option>
                <option value="sas">SAS</option>
                <option value="scala">Scala</option>
                <option value="scheme">Scheme</option>
                <option value="scilab">SciLab</option>
                <option value="sdlbasic">sdlBasic</option>
                <option value="smalltalk">Smalltalk</option>
                <option value="smarty">Smarty</option>
                <option value="spark">SPARK</option>
                <option value="sql">SQL</option>
                <option value="stonescript">StoneScript</option>
                <option value="systemverilog">SystemVerilog</option>
                <option value="tcl">TCL</option>
                <option value="teraterm">Tera Term Macro</option>
                <option value="text">Text</option>
                <option value="thinbasic">thinBasic</option>
                <option value="tsql">T-SQL</option>
                <option value="typoscript">TypoScript</option>
                <option value="unicon">Unicon (Unified Extended Dialect
                  of Icon)</option>
                <option value="upc">UPC</option>
                <option value="uscript">Unreal Script</option>
                <option value="vala">Vala</option>
                <option value="vb">Visual Basic</option>
                <option value="vbnet">vb.net</option>
                <option value="verilog">Verilog</option>
                <option value="vhdl">VHDL</option>
                <option value="vim">Vim Script</option>
                <option value="visualfoxpro">Visual Fox Pro</option>
                <option value="visualprolog">Visual Prolog</option>
                <option value="whitespace">Whitespace</option>
                <option value="whois">Whois (RPSL format)</option>
                <option value="winbatch">Winbatch</option>
                <option value="xbasic">XBasic</option>
                <option value="xml">XML</option>
                <option value="xorg_conf">Xorg configuration</option>
                <option value="xpp">X++</option>
                <option value="yaml">YAML</option>
                <option value="z80">ZiLOG Z80 Assembler</option>
                <option value="zxbasic">ZXBasic</option>
              </select>
            </p>
            <p>
            <b>This is the expiry option.</b>
    <select name="expiry"><option value="min">10 Minutes</option><option value="day">1 Day</option><option value="nev">Never</option></select><span style="display: none;">&nbsp;</span></p>
    <p>
    Privacy (This means it's not viewable on the recent posts.):</p>
<p>
    <select name="privacy"><option value="private">Private</option><option value="noprivate">Not Private</option></select></p>
            <p> <input name="Paste!" value="Paste!" type="submit"></p>
          </form>
          <p> &nbsp;</p>
        </div>
      </div>
      <!--End of each accordion item-->
      <!--Start of each accordion item-->
      <div id="test1-header" class="accordion_headings header_highlight">Stats</div>
      <!--Heading of the accordion ( clicked to show n hide ) -->
      <!--Prefix of heading (the DIV above this) and content (the DIV below this) to be same... eg. foo-header & foo-content-->
      <div id="test1-content"><!--DIV which show/hide on click of header-->
        <!--This DIV is for inline styling like padding...-->
        <div class="accordion_child">
          <h2>Recent Pastes</h2>
          <span style="font-weight: bold;"></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;









          Paste
          Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;









          Date
          Posted&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;









          Link<br>
          <?php
          $link = mysql_connect($host, $user, $password);
if (!$link) {
    die('Could not connect: ' . mysql_error());
}
if (!mysql_select_db($dbname)) {
    die('Could not select database: ' . mysql_error());
}
          mysql_query('SELECT * FROM (
   SELECT * FROM Entries ORDER BY Date ASC
) AS foo GROUP BY Date ORDER BY Date ASC');
          mysql_close($link);
          ?>
          <ul>
          </ul>
                    <table style=" text-align: left; width: 100%;" border="1"
            cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td style="vertical-align: top;"><br>
<?php
$link = mysql_connect($host, $user, $password);
if (!$link) {
    die('Could not connect: ' . mysql_error());
}
if (!mysql_select_db($dbname)) {
    die('Could not select database: ' . mysql_error());
}
$result = mysql_query("select * from Entries WHERE Privacy = 'noprivate' LIMIT 1");
while ($row = mysql_fetch_object($result)) {
    echo $row->Title;
}
mysql_free_result($result);

mysql_close($link);
?>
</td>
<td style="vertical-align: top;"><br>
<?php
$link = mysql_connect($host, $user, $password);
if (!$link) {
    die('Could not connect: ' . mysql_error());
}
if (!mysql_select_db($dbname)) {
    die('Could not select database: ' . mysql_error());
}
$result = mysql_query("select * from Entries WHERE Privacy = 'noprivate' LIMIT 1");
while ($row = mysql_fetch_object($result)) {
    echo $row->Date;
}
mysql_free_result($result);

mysql_close($link);
?>
</td>
<td style="vertical-align: top;"><br>
<?php
$link = mysql_connect($host, $user, $password);
if (!$link) {
    die('Could not connect: ' . mysql_error());
}
if (!mysql_select_db($dbname)) {
    die('Could not select database: ' . mysql_error());
}
$result = mysql_query("select * from Entries WHERE Privacy = 'noprivate' LIMIT 1");
while ($row = mysql_fetch_object($result)) {
    echo $row->ID;
}
mysql_free_result($result);

mysql_close($link);
?>
</td>
</tr>
<tr>
<td style="vertical-align: top;"><br>
<?php
$link = mysql_connect($host, $user, $password);
if (!$link) {
    die('Could not connect: ' . mysql_error());
}
if (!mysql_select_db($dbname)) {
    die('Could not select database: ' . mysql_error());
}
$result = mysql_query("select * from Entries WHERE Privacy = 'noprivate' LIMIT 1,1");
while ($row = mysql_fetch_object($result)) {
    echo $row->Title;
}
mysql_free_result($result);

mysql_close($link);
?>
</td>
<td style="vertical-align: top;"><br>
<?php
$link = mysql_connect($host, $user, $password);
if (!$link) {
    die('Could not connect: ' . mysql_error());
}
if (!mysql_select_db($dbname)) {
    die('Could not select database: ' . mysql_error());
}
$result = mysql_query("select * from Entries WHERE Privacy = 'noprivate' LIMIT 1,1");
while ($row = mysql_fetch_object($result)) {
    echo $row->Date;
}
mysql_free_result($result);

mysql_close($link);
?>
</td>
<td style="vertical-align: top;"><br>
<?php
$link = mysql_connect($host, $user, $password);
if (!$link) {
    die('Could not connect: ' . mysql_error());
}
if (!mysql_select_db($dbname)) {
    die('Could not select database: ' . mysql_error());
}
$result = mysql_query("select * from Entries WHERE Privacy = 'noprivate' LIMIT 1,1");
while ($row = mysql_fetch_object($result)) {
    echo $row->ID;
}
mysql_free_result($result);

mysql_close($link);
?>
</td>
</tr>
</tbody>
</table>
          <ul>
          </ul>
          <h2>Note from the Wikked Pastebin Staff<br>
          </h2>
          <blockquote>Simplicity, Quality, and User Friendlyness comes
            before features. That's how you show yourself as a good
            person ;)</blockquote>
        </div>
      </div>
      <!--End of each accordion item-->
      <!--Start of each accordion item-->
      <div id="test2-header" class="accordion_headings header_highlight">Copyright Information</div>
      <!--Heading of the accordion ( clicked to show n hide ) -->
      <!--Prefix of heading (the DIV above this) and content (the DIV below this) to be same... eg. foo-header & foo-content-->
      <div id="test2-content"><!--DIV which show/hide on click of header-->
        <!--This DIV is for inline styling like padding...-->
        <div class="accordion_child">This Pastebin uses <a
            href="http://wikkedpaste.com">Wikked Pastebin</a>
          Software. Please don't remove these notices, as we want to be
          credited as well. We thank you very much for cooperating with
          us.<br>
        </div>
      </div>
      <!--End of each accordion item-->
      <!--Start of each accordion item-->
      <div id="test3-header" class="accordion_headings header_highlight">Links</div>
      <!--Heading of the accordion ( clicked to show n hide ) -->
      <!--Prefix of heading (the DIV above this) and content (the DIV below this) to be same... eg. foo-header & foo-content-->
      <div id="test3-content"><!--DIV which show/hide on click of header-->
        <!--This DIV is for inline styling like padding...-->
        <div class="accordion_child">
          <p>Some links for your viewing pleasure:</p>
          <ul class="links">
            <li><a href="http://wikkedpastebin.com"><span
                  style="text-decoration: underline;">Wikked Pastebin</span></a></li>
          </ul>
        </div>
      </div>
      <!--End of each accordion item--> </div>
    <!--End of accordion parent-->
    <div id="footer">
      <p class="validate"><a
          href="http://validator.w3.org/check?uri=referer">XHTML</a> | <a
          href="http://jigsaw.w3.org/css-validator/">CSS</a><br>
        <a href="#content">Top</a></p>
      <!-- Please leave this line intact -->
      <p><br>
        <!-- you can delete below here --><span style="font-weight:
          bold; color: rgb(255, 102, 0);"> © 2011 Wikked Pastebin</span><br>
      </p>
    </div>
  </body>
</html>
